<template>
  <div class="box">
    <div @click="fun()">{{ text[1] }}</div>
    <div>{{ text[0] }}</div>
    <div>{{ text[2] }}</div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      text: ["礼遇陕西", "<", "X"],
    };
  },
  methods: {
    fun() {
      this.$router.push("/life");
    },
  },
};
</script>

<style lang="scss" scoped>
.box {
  width: 100%;
  line-height: 0.5rem;
  display: flex;
  justify-content: space-between;
  height: 0.5rem;
  text-align: center;
  background-color: skyblue;
  > div:nth-child(2n-1) {
    width: 0.4rem;
    padding: 0 0.1rem;
  }
}
</style>